import torch
# device
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")

# 数据集路径
DataDir = 'data/ravdess'

# 模型保存路径
Model_Path = 'model/model_lstm_TIMESTAMP.pth'

# 特征数量：mfcc参数
N_MFCC = 13

# 模型参数
INPUT_DIM = N_MFCC  # 输入特征数量
HIDDEN_DIM = 128  # 隐藏层数量
NUM_LAYERS = 2  # LSTM 层数量
OUTPUT_DIM = 8  # 输出维度

# 训练配置
NUM_EPOCHS = 1000  # 训练轮数
BATCH_SIZE = 32  # 批次大小
LEARNING_RATE = 0.001  # 学习率
MAX_PAD_LEN = 100  # 每个样本的最大时间步数

# 学习率更新超参数【ReduceLROnPlateau】
Patience = 8
Factor = 0.8
Val_Acc_Start = 0.7
